.class Les/zi$b;
.super Ljava/lang/Object;
.source "AuthDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/zi;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/zi;


# direct methods
.method constructor <init>(Les/zi;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/zi$b;->a:Les/zi;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 7

    .line 1
    iget-object p1, p0, Les/zi$b;->a:Les/zi;

    invoke-static {p1}, Les/zi;->b(Les/zi;)Landroid/widget/EditText;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Les/zi$b;->a:Les/zi;

    .line 2
    invoke-static {p1}, Les/zi;->a(Les/zi;)Landroid/widget/CheckBox;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result p1

    if-nez p1, :cond_0

    .line 3
    iget-object p1, p0, Les/zi$b;->a:Les/zi;

    iget-object p1, p1, Les/zi;->i:Landroid/content/Context;

    const p2, 0x7f110b2f

    .line 4
    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    const/4 v0, 0x1

    .line 5
    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    .line 6
    :cond_0
    iget-object p1, p0, Les/zi$b;->a:Les/zi;

    invoke-static {p1}, Les/zi;->b(Les/zi;)Landroid/widget/EditText;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p1

    .line 7
    iget-object p2, p0, Les/zi$b;->a:Les/zi;

    invoke-static {p2}, Les/zi;->c(Les/zi;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

    if-eqz p1, :cond_1

    .line 8
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    :cond_1
    if-eqz p2, :cond_2

    .line 9
    invoke-static {p2}, Lcom/estrongs/android/util/h0;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 10
    :cond_2
    iget-object v0, p0, Les/zi$b;->a:Les/zi;

    iget-object v0, v0, Les/zi;->h:Ljava/lang/String;

    .line 11
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz p1, :cond_3

    .line 12
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v2

    if-eqz v2, :cond_3

    .line 13
    invoke-static {v1, p1, p2}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    :cond_3
    move-object v2, v1

    .line 14
    :goto_0
    iget-object v3, p0, Les/zi$b;->a:Les/zi;

    invoke-static {v3}, Les/zi;->d(Les/zi;)Landroid/widget/CheckBox;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    if-nez v3, :cond_4

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->n2(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->d1(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->f1(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    .line 15
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->a2(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->D2(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    .line 16
    :cond_4
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 17
    invoke-static {v0}, Lcom/estrongs/fs/impl/adb/c;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 18
    invoke-static {v2}, Lcom/estrongs/fs/impl/adb/c;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 19
    invoke-static {v1}, Lcom/estrongs/fs/impl/adb/c;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    goto :goto_1

    :cond_5
    move-object v3, v0

    move-object v4, v2

    .line 20
    :goto_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v5

    .line 21
    invoke-virtual {v5, v3}, Lcom/estrongs/android/pop/l;->s(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez v6, :cond_6

    .line 22
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 23
    :cond_6
    invoke-virtual {v5, v3}, Lcom/estrongs/android/pop/l;->E(Ljava/lang/String;)V

    .line 24
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 25
    invoke-virtual {v5, v4, v6}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 26
    :cond_7
    iget-object v2, p0, Les/zi$b;->a:Les/zi;

    invoke-static {v2}, Les/zi;->d(Les/zi;)Landroid/widget/CheckBox;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v2

    if-eqz v2, :cond_8

    .line 27
    invoke-virtual {v5, v4, v6}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 28
    :cond_8
    invoke-virtual {v5, v1, v6}, Lcom/estrongs/android/pop/l;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 29
    :cond_9
    :goto_2
    iget-object v1, p0, Les/zi$b;->a:Les/zi;

    iget-object v1, v1, Les/zi;->l:Les/zi$c;

    if-eqz v1, :cond_a

    .line 30
    invoke-interface {v1, p1, p2, v0}, Les/zi$c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V

    .line 31
    :cond_a
    iget-object p1, p0, Les/zi$b;->a:Les/zi;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method
